#ifndef BATTERYINFO_H
#define BATTERYINFO_H

#include <QObject>

class BatteryInfo : public QObject
{
public:
    enum Battery_State
    {
        Battery_Invalid = 0,
        Battery_Nobattery,
        Battery_Discharging,
        Battery_Charging
    };
    explicit BatteryInfo(QObject *parent = nullptr);
    static void queryBatteryInfo(Battery_State &state, quint32 &percent);
};

#endif // BATTERYINFO_H
